package com.chiyoyo.multipay.framework;

import com.chiyoyo.multipay.framework.core.client.PayClientFactory;
import com.chiyoyo.multipay.framework.core.client.impl.PayClientFactoryImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author chil
 * 将支付客户端工厂注入到Spring容器中
 */
@Configuration
public class UniPayHubConfiguration {
    @Bean
    public PayClientFactory payClientFactory() {
        return new PayClientFactoryImpl();
    }
}
